package com.dexilaonian.activity;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

import com.dexilaonian.MainActivity;
import java.util.ArrayList;

public class JavaScriptinterface {
    private static final int CAMERA_PERIMISSION_CODE = 20;
    private static final int REQUEST_IMAGE = 21;
    private final ConsultationActivity activity;
    private ArrayList<String> mSelectPath = new ArrayList<>();
    private String imageUrl;
  //  Context context;
    // private static iNetFail mNetFail;

    public JavaScriptinterface(ConsultationActivity mActivity) {
        activity = mActivity;
    }

    /**
     * 与js交互时用到的方法，在js里直接调用的
     */
    @JavascriptInterface
    public void showToast(String ssss) {
        activity.startActivity(new Intent(activity, MainActivity.class));
    }
    @JavascriptInterface
    public void getCamera(String aaa) { //获取相机
        activity.initCamera();

    }

}